
<div style='border:1px solid;'>
	<div class='ServiceIndexConditionArea_ServiceType' style='float:left;padding:3px 5px;margin:10px 3px;border:1px solid blue' value='none'>综合信息</div>
	<volist name='res_serviceType' id='vo'>
		<div class='ServiceIndexConditionArea_ServiceType' style='float:left;padding:3px 5px;margin:10px 3px;border:1px solid blue' value='{$vo.type_id}' service_name = '{$vo.type_name}'>{$current_city}{$vo.type_name}</div>
	</volist>
	<div style='clear:both'></div>
</div>
<script>
	$(function(){
		$('.ServiceIndexConditionArea_ServiceType').click(function(){
			//alert($(this).attr('service_name'));
			sessionStorage.service_index_conditionArea_serviceId = $(this).attr('value');
			sessionStorage.service_index_conditionArea_serviceName = $(this).attr('service_name');
			//alert(sessionStorage.service_index_conditionArea_serviceName);
			clear_sess('pnow');		//清除sessionStorage的缓存
			location.reload(1);
		});
		$('.ServiceIndexConditionArea_ServiceType').css('background','#ccc');
		$('.ServiceIndexConditionArea_ServiceType').each(function(){
			if(sessionStorage.service_index_conditionArea_serviceId){
				if($(this).attr('value') == sessionStorage.service_index_conditionArea_serviceId){
					$(this).css('background','#88f').css('color','#fff');
				}
			}else{
				if($(this).attr('value')=='none'){
					$(this).css('background','#88f').css('color','#fff');
				}
			}
		});
	});
</script>

